<?php

namespace App\Remote\Orm;

use GuzzleHttp\Exception\GuzzleException;
use Illuminate\Validation\ValidationException;
use Symfony\Component\HttpFoundation\Request as RequestAlias;

class ShopRemote extends Remote
{
    /**
     * 存在订货门店列表
     *
     * @return mixed
     * @throws GuzzleException
     * @throws ValidationException
     */
    public static function hasOrderShopLists()
    {
        return self::customRequestV3(
            "/internal/store/allShopIds",
            RequestAlias::METHOD_GET,
            null,
            null,
            null,
            10 * 60
        );
    }

    /**
     * 存在物流建档门店
     *
     * @return mixed
     * @throws GuzzleException
     * @throws ValidationException
     */
    public static function hasLogisticsFileShopLists()
    {
        return self::customRequestV3(
            "/internal/store/hasUnitNewOrderShopIds",
            RequestAlias::METHOD_GET,
            null,
            null,
            null,
            10 * 60
        );
    }
}
